/*
 * @Author: Starfish_DL
 * @Date: 2020-09-16 17:21:55
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-09-24 14:48:56
 * @CurrentVersion: 1.0
 * @Description: 
 */
public class homework_0916 
{
    public static void main(String[] args) 
    {
        /*
        0916_01
        System.out.println("请在此处输入一个字符串：");
        java.util.Scanner input=new java.util.Scanner(System.in);
        String s=input.nextLine();
        System.out.println("本字符串含有：");
        System.out.printf("字母：%d\n",statistics(s)[1]);
        System.out.printf("数字：%d\n",statistics(s)[2]);
        System.out.printf("空格：%d\n",statistics(s)[0]);
        System.out.printf("其他：%d\n",statistics(s)[3]);
        */

        /*
        0916_02
        System.out.println("请在此处输入一个数字：");
        java.util.Scanner input=new java.util.Scanner(System.in);
        int i=input.nextInt();
        for (int j = 0; j < DPF(i).length; j++) {
            System.out.print(DPF(i)[j]+" ");   
        }
        System.out.print("\n");
        */
        chicken_and_money();
    }
    
    public static int[] statistics(String s) 
    {
        //0916_01
        int letter_num=0;
        int figure_num=0;
        int blank_num=0;
        int others=0;
        int str_len=s.length();
        char temps;
        int temp;
        for (int i = 0; i < str_len; i++) 
        {
            temps=s.charAt(i);
            temp=(int)temps;
            if (temp==0 || temp==32) {
                blank_num++;
            } else 
            if (temp>=48 && temp<=57){
                letter_num++;
            } else
            if ((temp>=65 && temp<=90) || (temp>=97 && temp <=115)) {
                figure_num++;
            } else {
                others++;
            }
        }
        int return_array[]={blank_num,letter_num,figure_num,others};
        return return_array;
    }

    public static int[] DPF(int i) 
    {
        //Decomposing the prime factor
        //0916_02
        int re[];
        re=new int[1];
        int k=0;
        int j=2;
        while (j < ((int)Math.sqrt(i)+1))
        {
            if(i % j==0){
                re[k]=j;
                re=java.util.Arrays.copyOf(re, re.length+1);
                k++;
                i=i/j;
            }else {
                j++;
            }
        }
        re[k]=i;
        return re;
    }
    
    public static void chicken_and_rabbit() 
    {
        //0916_05
        int CHICKEN_FOOT=2;
        int RABBIT_FOOT=4;
        int HEAD_NUM=35;
        int FOOT_NUM=94;
        int chicken_num=((HEAD_NUM*RABBIT_FOOT)-FOOT_NUM)/(RABBIT_FOOT-CHICKEN_FOOT);
        int rabbit_num=HEAD_NUM-chicken_num;
        System.out.print(chicken_num+" "+rabbit_num+"\n");
    }

    public static void chicken_and_money() 
    {
        //0916_06
        //int CHICKEN_FATHER_VALUE=5;
        //int CHICKEN_MOTHER_VALUE=3;
        //int CHICKEN_VALUE=1;
        int VALUE_NUM=100;
        int NUM=100;
        for (int father_num = 8; father_num <= 12; father_num=father_num+4) {
            int mother_num=(VALUE_NUM-7*father_num)/4;
            int child_num=NUM-father_num-mother_num;
            System.out.println(father_num+"\n"+mother_num+"\n"+child_num);
        }
    }
}